﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>信息详情</title>
</head>
<link rel="stylesheet" href="/static/layui/css/layui.css" />
<body>
<form class="layui-form"  action="" lay-filter="detail">
    <div class="layui-inline">
        <label class="layui-form-label">编号：</label>
        <div class="layui-input-inline">
            <input type="text" name="typeNo" id="typeNo" lay-verify="required" placeholder="请输入编号" autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-inline">
        <label class="layui-form-label">权重：</label>
        <div class="layui-input-inline">
            <input type="text" name="hierarchy" id="hierarchy" lay-verify="required" placeholder="请输入权重" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-inline">
        <label class="layui-form-label">姓名：</label>
        <div class="layui-input-inline">
            <input type="text" name="name" id="name" lay-verify="required" placeholder="请输入姓名" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-inline">
        <label class="layui-form-label">备注：</label>
        <div class="layui-input-inline">
            <input type="text" name="remark" id="remark" lay-verify="required" placeholder="请输入备注" autocomplete="off" class="layui-input">
        </div>
    </div>
<!--    <div class="layui-inline">-->
<!--        <label class="layui-form-label">状态：</label>-->
<!--        <div class="layui-input-inline">-->
<!--            <input type="text" name="flog" id="flog" lay-verify="required" placeholder="请输入状态" autocomplete="off" class="layui-input">-->
<!--        </div>-->
<!--    </div>-->

    <div class="layui-form-item">
        <label class="layui-form-label">状态</label>
        <div class="layui-input-inline layui-col-md4">
            <select name="flog" lay-filter="aihao">
                <option value="">--请选择--</option>
                <option value="1">否</option>
                <option value="2">是</option>
            </select>
        </div>
    </div>
</form>
</body>
<script src="/static/js/system.js"></script>
<script src="/static/js/jquery-3.3.1.js"></script>
<script src="/static/layui/layui.js"></script>
<script>
    $(function () {
        $("input").prop("disabled","disabled");
    })
    layui.use(['form','layer'], function(){
        var form = layui.form, laydate = layui.laydate;
        // laydate.render({
        //     elem: '#time'
        // });
        $.ajax({
            url:'/dite/findId',
            type:"post",
            dataType:"json",
            data:{"id":getQueryString("id")},
            success:function (da) {
                console.log(da)
                if (da.code == 200) {
                    // form.val("detail", da.date);
                    form.val("detail", { //formTest 即 class="layui-form" 所在元素属性 lay-filter="" 对应的值
                        // "time": layui.util.toDateString(da.date.time, 'yyyy-MM-dd')

                        "typeNo": da.date.typeNo // "name": "value"
                        ,"hierarchy": da.date.hierarchy,
                        "name": da.date.name // "name": "value"
                        ,"remark": da.date.remark,
                        "flog": da.date.flog
                    });
                } else {
                    parent.layer.msg("详情查询失败！");
                }
            }
        });
    });
</script>
</html>